@echo off
REM Build GUI application (hide console window)
echo Building Hermes GUI version...

REM 生成资源文件
rsrc -ico icon.ico -o rsrc.syso

go build -ldflags="-H windowsgui -s -w" -o hermes.exe .

if %errorlevel% neq 0 (
    echo Build failed!
    exit /b 1
)

echo Build successful! Output file: hermes.exe